#ifndef __SIN_COS_H
#define __SIN_COS_H

/* sin0 ~ sin90 */
// float sin_tab[91] = {
//         0, 0.017, 0.034, 0.052, 0.069, 0.087, 0.104, 0.121, 0.139, 0.156,  //0~9
//     0.173, 0.190, 0.207, 0.224, 0.241, 0.258, 0.275, 0.292, 0.309, 0.325,  //10~19
//     0.342, 0.358, 0.374, 0.390, 0.406, 0.422, 0.438, 0.453, 0.469, 0.484,  //20~29
//     0.500, 0.515, 0.529, 0.544, 0.559, 0.573, 0.587, 0.601, 0.615, 0.629,  //30~39
//     0.642, 0.656, 0.669, 0.681, 0.694, 0.707, 0.719, 0.731, 0.743, 0.754,  //40~49
//     0.766, 0.777, 0.788, 0.798, 0.809, 0.819, 0.829, 0.838, 0.848, 0.857,  //50~59
//     0.866, 0.874, 0.882, 0.891, 0.898, 0.906, 0.913, 0.920, 0.927, 0.933,  //60~69
//     0.939, 0.945, 0.951, 0.956, 0.961, 0.965, 0.970, 0.974, 0.978, 0.981,  //70~79
//     0.984, 0.987, 0.990, 0.992, 0.994, 0.996, 0.997, 0.998, 0.999, 0.999,  //80~89
//     1.000
// };

uint16_t sin_tab[91] = {
      0,  17,  34,  52,  69,  87, 104, 121, 139, 156,  //0~9
    173, 190, 207, 224, 241, 258, 275, 292, 309, 325,  //10~19
    342, 358, 374, 390, 406, 422, 438, 453, 469, 484,  //20~29
    500, 515, 529, 544, 559, 573, 587, 601, 615, 629,  //30~39
    642, 656, 669, 681, 694, 707, 719, 731, 743, 754,  //40~49
    766, 777, 788, 798, 809, 819, 829, 838, 848, 857,  //50~59
    866, 874, 882, 891, 898, 906, 913, 920, 927, 933,  //60~69
    939, 945, 951, 956, 961, 965, 970, 974, 978, 981,  //70~79
    984, 987, 990, 992, 994, 996, 997, 998, 999, 999,  //80~89
    1000,
};

#endif
